# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <ablocorrea@hotmail.com>
pkgname=orca
pkgver=45.0
pkgrel=0
pkgdesc="Orca is an extensible screen reader"
url="https://wiki.gnome.org/Projects/Orca"
arch="noarch !armhf" # missing gst-plugins-good
license="LGPL-2.1-or-later"
depends="
	at-spi2-core
	gst-plugins-good
	gtk+3.0
	libatk-1.0
	py3-atspi
	py3-gobject3
	py3-xdg
	python3
	"
makedepends="
	at-spi2-core-dev
	gstreamer-dev
	intltool
	itstool
	py3-gobject3-dev
	"
subpackages="$pkgname-lang $pkgname-doc $pkgname-pyc"
source="https://download.gnome.org/sources/orca/${pkgver%.*}/orca-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
3213d5f0b8e0eacc5daad3df3e521548c5e6dd5ad8584e50d60a7fd054fee86793e956d3db3dcdc223d34d72bcfbfa0b436bc40f6e965528eafa2abf36259c83  orca-45.0.tar.xz
"
